﻿using Abp.Domain.Entities;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Partner.Surround.Base.DataDictionaries
{
    /// <summary>
    /// 基础_数据字典
    /// </summary>
    [Table("Base_DataDictionary")]
    public class DataDictionary : Entity<long>
    {
        public const int MaxNameLength = 30;

        /// <summary>
        /// 字典类型
        /// </summary>
        [StringLength(MaxNameLength)]
        public string TypeName { get; set; }

        /// <summary>
        /// 关联数据字典项
        /// </summary>
        public virtual ICollection<DataDictionaryItem> DataDictionaryItem { get; set; }
    }
}
